package com.etc.patient.mapper;


import com.etc.common.entity.MedicalRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MedicalRecordMapper {

    /**
     * 新增电子病历
     *
     * @param medicalRecord
     * @return
     */
    int insert(MedicalRecord medicalRecord);


    /**
     * 根据医生id查询病历
     * @param docId
     * @return
     */
    List<MedicalRecord> queryByDocId(String docId);

    List<MedicalRecord> queryByDocIdLike(String docId,String like,Integer start,Integer end);
}
